import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:ws2812_time/view/config/view.dart';
import 'package:ws2812_time/view/info/view.dart';
import 'package:ws2812_time/view/power/view.dart';
import 'package:ws2812_time/view/timer/view.dart';

class HomeLogic extends GetxController with GetSingleTickerProviderStateMixin {
  late final TabController tabController;
  final Map<String, IconData> tabs = {
    "Power": Icons.offline_bolt_outlined,
    "Timer": Icons.timer_sharp,
    "Info": Icons.info_outline,
    "Config": Icons.settings,
  };
  final List<Widget> tabview = [
    PowerPage(),
    TimerPage(),
    InfoPage(),
    ConfigPage(),
  ];

  @override
  void onInit() async {
    super.onInit();
    tabController = TabController(length: tabs.length, vsync: this);
  }
}
